package com.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Spend_list {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField(value = "userId")
    private Long userId;
    @TableField(value = "userName")
    private String userName;
    private Integer recharge;
    @TableField(value = "consumeBookName")
    private String consumeBookName;
    @TableField(value = "consumeBookPrice")
    private Double consumeBookPrice;
    private Double balancechange;
    private Double balance;
//    返回该前端的日期的格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;
    private Integer biaoji;

}
